home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / ispell31.lha / ispell-3.1.18src / Makekit < prev    next >
Text File  |  1995-01-23  |  7KB  |  264 lines

  1. : Use /bin/sh
  2. #
  3. # $Id: Makekit,v 1.38 1995/01/15 00:54:45 geoff Exp $
  4. #
  5. # Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
  6. # All rights reserved.
  7. #
  8. # Redistribution and use in source and binary forms, with or without
  9. # modification, are permitted provided that the following conditions
  10. # are met:
  11. #
  12. # 1. Redistributions of source code must retain the above copyright
  13. #    notice, this list of conditions and the following disclaimer.
  14. # 2. Redistributions in binary form must reproduce the above copyright
  15. #    notice, this list of conditions and the following disclaimer in the
  16. #    documentation and/or other materials provided with the distribution.
  17. # 3. All modifications to the source code must be clearly marked as
  18. #    such.  Binary redistributions based on modified source code
  19. #    must be clearly marked as modified versions in the documentation
  20. #    and/or other materials provided with the distribution.
  21. # 4. All advertising materials mentioning features or use of this software
  22. #    must display the following acknowledgment:
  23. #      This product includes software developed by Geoff Kuenning and
  24. #      other unpaid contributors.
  25. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  26. #    products derived from this software without specific prior
  27. #    written permission.
  28. #
  29. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  30. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  31. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  32. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  33. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  34. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  35. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  36. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  37. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  38. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  39. # SUCH DAMAGE.
  40. #
  41. #    Make an ispell distribution kit.  This is not a clever script,
  42. #    just a handy one.
  43. #
  44. #    Usage:
  45. #
  46. #    Makekit [-c] [-d destdir] [-e]
  47. #
  48. #    destdir is the directory in which the kits will be made;  you will
  49. #    want to pick someplace that has lots of space.
  50. #
  51. #    If -e is specified, the list of files in the kit is echoed to
  52. #    stdout and no kit is made.
  53. #
  54. #    If -c is specified, the intermediate dictionary files are cleaned up.
  55. #
  56. # $Log: Makekit,v $
  57. # Revision 1.38  1995/01/15  00:54:45  geoff
  58. # Add iwhich and the new Spanish support
  59. #
  60. # Revision 1.37  1994/05/18  02:56:25  geoff
  61. # Remember to list dictionaries with the -e switch
  62. #
  63. # Revision 1.36  1994/04/27  02:58:42  geoff
  64. # Add the new English-dialect Makefiles
  65. #
  66. # Revision 1.35  1994/02/07  08:39:49  geoff
  67. # Don't delete everything when we're only echoing names
  68. #
  69. # Revision 1.34  1994/01/25  08:51:16  geoff
  70. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  71. #
  72. #
  73. posting=3.1
  74. maxsize=60000        # This leaves room for some headers
  75. clean=false
  76. destdir=kits
  77. echolist=false
  78. PATH=`pwd`:$PATH; export PATH
  79. USAGE="Usage:  Makekit [-c] [-d destdir] [-e]"
  80.  
  81. while [ $# -gt 0 ]
  82. do
  83.     case "$1" in
  84.     -c)
  85.         clean=true
  86.         shift
  87.         ;;
  88.     -d)
  89.         destdir="$2"
  90.         shift; shift
  91.         ;;
  92.     -e)
  93.         echolist=true
  94.         shift
  95.         ;;
  96.     *)
  97.         echo "$USAGE" 1>&2
  98.         exit 1
  99.         ;;
  100.     esac
  101. done
  102.  
  103. case "$destdir" in
  104.     /*)
  105.     ;;
  106.     *)
  107.     destdir=`pwd`/$destdir
  108.     ;;
  109. esac
  110.  
  111. flist='
  112. Contributors
  113. README
  114. Magiclines
  115. Makefile
  116. Makekit
  117. Makepatch
  118. WISHES
  119. buildhash.c
  120. config.X
  121. correct.c
  122. defmt.c
  123. dump.c
  124. fields.3
  125. fields.c
  126. fields.h
  127. findaffix.X
  128. good.c
  129. hash.c
  130. icombine.c
  131. ijoin.c
  132. ishar
  133. ispell.1X
  134. ispell.4
  135. ispell.c
  136. ispell.el
  137. ispell.h
  138. ispell.texinfo
  139. iwhich
  140. local.h.samp
  141. lookup.c
  142. makedict.sh
  143. makedent.c
  144. makeshar
  145. munchlist.X
  146. parse.y
  147. proto.h
  148. splitdict
  149. sq.1
  150. sq.c
  151. subset.X
  152. term.c
  153. tgood.c
  154. tree.c
  155. tryaffix.X
  156. unsq.c
  157. version.h
  158. xgets.c
  159. zapdups.X
  160. languages/Makefile
  161. languages/Where
  162. languages/fix8bit.c
  163. languages/altamer/Makefile
  164. languages/american/Makefile
  165. languages/british/Makefile
  166. languages/dansk/Makefile
  167. languages/dansk/dansk.7bit
  168. languages/deutsch/Makefile
  169. languages/deutsch/deutsch.7bit
  170. languages/deutsch/deutsch-alt.7bit
  171. languages/english/Makefile
  172. languages/english/english.4l
  173. languages/english/english.aff
  174. languages/english/msgs.h
  175. languages/espanol/Makefile
  176. languages/espanol/castellano.7bit
  177. languages/espanol/espanol.7bit
  178. languages/francais/Makefile
  179. languages/francais/francais.7bit
  180. languages/francais/francais-alt.7bit
  181. languages/nederlands/Makefile
  182. languages/nederlands/nederlands.7bit
  183. languages/norsk/Makefile
  184. languages/norsk/norsk.7bit
  185. languages/svenska/Makefile
  186. languages/svenska/svenska.7bit
  187. addons/nextispell/Makefile
  188. addons/nextispell/README
  189. addons/nextispell/configure
  190. addons/nextispell/configure.h.template
  191. addons/nextispell/configureTeX
  192. addons/nextispell/nextispell.m
  193. addons/nextispell/services.template
  194. addons/xspell.shar
  195. '
  196.  
  197. if $echolist
  198. then
  199.     echo $flist
  200.     echo languages/english/*.[0-3]
  201.     exit 0
  202. fi
  203.  
  204. [ -d "$destdir" ]  ||  mkdir "$destdir"
  205. rm -f $destdir/Post${posting}.??.shar
  206.  
  207. #
  208. # Make the main shar files
  209. #
  210. cursize=0
  211. files=
  212. chmod +x makeshar ishar
  213. sharno=`makeshar -n -m $maxsize -o $destdir/Post${posting}. -pX $flist`
  214.  
  215. #
  216. # Set up to make dictionary files
  217. #
  218.  
  219. chmod +x splitdict
  220. [ -d "$destdir/languages" ]  ||  mkdir "$destdir/languages"
  221.  
  222. #
  223. # Make the English dictionaries
  224. #
  225. [ -d "$destdir/languages/english" ]  ||  mkdir "$destdir/languages/english"
  226. rm -f $destdir/languages/english/*.?.??
  227.  
  228. ./splitdict $maxsize languages/english/english.0 \
  229.   $destdir/languages/english/eng.0.
  230. ./splitdict $maxsize languages/english/english.1 \
  231.   $destdir/languages/english/eng.1.
  232. ./splitdict $maxsize languages/english/english.2 \
  233.   $destdir/languages/english/eng.2.
  234. ./splitdict $maxsize languages/english/english.3 \
  235.   $destdir/languages/english/eng.3.
  236. ./splitdict $maxsize languages/english/american.0 \
  237.   $destdir/languages/english/amer.0.
  238. ./splitdict $maxsize languages/english/american.1 \
  239.   $destdir/languages/english/amer.1.
  240. ./splitdict $maxsize languages/english/american.2 \
  241.   $destdir/languages/english/amer.2.
  242. ./splitdict $maxsize languages/english/altamer.0 \
  243.   $destdir/languages/english/altamer.0.
  244. ./splitdict $maxsize languages/english/altamer.1 \
  245.   $destdir/languages/english/altamer.1.
  246. ./splitdict $maxsize languages/english/altamer.2 \
  247.   $destdir/languages/english/altamer.2.
  248. ./splitdict $maxsize languages/english/british.0 \
  249.   $destdir/languages/english/brit.0.
  250. ./splitdict $maxsize languages/english/british.1 \
  251.   $destdir/languages/english/brit.1.
  252. ./splitdict $maxsize languages/english/british.2 \
  253.   $destdir/languages/english/brit.2.
  254.  
  255. sharno=`expr $sharno + 1`
  256. cd $destdir
  257. makeshar -f $sharno -m $maxsize -o $destdir/Post${posting}. -pX \
  258.   languages/english/eng.?.?? languages/english/amer.?.?? \
  259.   languages/english/altamer.?.?? languages/english/brit.?.??
  260. if $clean
  261. then
  262.     rm -f $destdir/languages/english/*.?.??
  263. fi
  264.